<?php
namespace Admin\Model;
use Think\Model;


class AttrModel extends Model {

    protected $_validate = array(
        array('name', 'require', '属性不能为空', self::EXISTS_VALIDATE, 'regex', self::MODEL_BOTH),
        array('name,gid','', '属性已经存在', 1, 'unique', self::MODEL_BOTH),
    );

    protected $_auto = array(
        array('status', '1', self::MODEL_BOTH),
    );
}
?>
